package com.cet.spring_batch_study.client;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class LocaDateFormatTest {

    public static void main(String[] args) {
        LocalDateTime localDateTime = LocalDate.now().atStartOfDay();
        System.out.println(localDateTime.format(DateTimeFormatter.ofPattern("HH:mm")));
        LocalDateTime startTimePoint = LocalDate.now().minusWeeks(1).atStartOfDay();
        System.out.println(startTimePoint.format(DateTimeFormatter.ofPattern("MM-dd")));

        LocalDateTime startTimePoint1 = LocalDate.now().minusMonths(1).atStartOfDay();
        System.out.println(startTimePoint1.format(DateTimeFormatter.ofPattern("MM-dd")));
    }
}
